﻿using FactoryClsssLib.Examples;
using FactoryClsssLib.Examples2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryClsssLib.Factory
{
    /// <summary>
    /// 抽象工厂
    /// 核心：在一个工厂里聚合多个同类产品。
    /// </summary>
    public abstract class IAbstractFactory<T>
    {
        //public abstract IColor getColor(String color);
        //public abstract IShape getShape(String shape);

        //public abstract IShape getCode(String Code);

        public abstract T getObject(String key);
    }
}
